package com.jxc.action.kcgl;

import org.apache.log4j.Logger;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.beans.factory.annotation.Autowired;

import com.jxc.action.BaseAction;
import com.jxc.model.vo.VTransferlistItem;
import com.jxc.service.TransferlistItemServiceI;
import com.opensymphony.xwork2.ModelDriven;

/**
 * 库存调拨明细
 * 
 * @author Tino
 * 
 */
@Namespace("/kcgl")
@Action(value = "goodsTransferItemAction", results = { @Result(name = "goodsTransferItemAdd", location = "/amountRelate/goodsTransferItemAdd.jsp"),
		@Result(name = "goodsTransferItemEdit", location = "/amountRelate/goodsTransferItemEdit.jsp") })
public class GoodsTransferItemAction extends BaseAction implements ModelDriven<VTransferlistItem> {
	private final static Logger logger = Logger.getLogger(GoodsTransferItemAction.class);

	private VTransferlistItem model = new VTransferlistItem();

	@Autowired
	private TransferlistItemServiceI transferlistItemService;

	public void datagrid() {
		
	}

	public String goodsTransferItemAdd() {
		return "goodsTransferItemAdd";
	}

	public String goodsTransferItemEdit() {
		this.getRequest().setAttribute("id", model.getId());
		return "goodsTransferItemEdit";
	}

	@Override
	public VTransferlistItem getModel() {
		return model;
	}

}
